<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />
<link href="css/adminstyle.css" rel="stylesheet" type="text/css">
<title>管理区域</title>

<script src="js/js.js"></script>

<script>

  function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='nav_delete.html?id='+id;

	}

}

</script>

</head>


<body>

<div id="man_zone">
<div class="div1">

<input name="" type="button" class="PublicBot" onclick="window.location.href='nav_add.html'" value="添加" /></div>

<form method="get" action="nav_delete.html" id="form">

  <input name="type" id="type" type="hidden" value="">

  <table width="98%"  border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">

    <tr class="header">

    <td width="25"></td>

      <td width="390" align="center"  > 标题</td>

      <td width="390" >url</td>
      <td width="200" >链接状态</td>
      <td width="200" >显示状态</td>
      <td width="296" align="center">编辑</td>

    </tr>

   <?

        function  classInfo ($data,$leve=0,$tmp="",$link_type_pair)

		{

			if (!empty($data))

			{

				if ($leve>0)

				{

					$tmp="|--".$tmp;

				}

				$leve++;

				

				foreach ($data as $v)

				{

					?>

				    <tr bgcolor="#FFFFFF">
				
				          <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>
				
				      <td ><?=$tmp?><?=$v['title']?></td>
				
				      <td><?=$v['url']?></td>

				      <td><?=$link_type_pair[$v['link_type']]?></td>

				      <td>
				      <?if($v['status']==2){?>
				      	<font color="red">不显示</font>
				      <?}else{?>
				       	正在显示
				      <?}?>
				      </td>
				
				      <td align="center">
				    <a onclick=delc(<?=$v['id']?>) href="javaScript:void(0);">删除</a>　　
				    <a href="nav_add.html?id=<?=$v['id']?>"  href="javaScript:void(0);">修改</a>
				    &nbsp;&nbsp;&nbsp;
				    <?if($v['news_status']==NAV_NEWS_STATUS_CHECKED){?>
				    	&nbsp;&nbsp;
				    	<a href="news_lists.html?nav_id=<?=$v['id']?>"  href="javaScript:void(0);">新闻列表</a>
				    <?}?>
				    </td>
				    </tr> 
			<?

                    classInfo($v['next'],$leve,$tmp,$link_type_pair);

				}

			}

		}

		classInfo($list,0,"",$link_type_pair);

		?>



 <tr bgcolor="#FFFFFF">

 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>

 <td colspan="3">删除栏目下信息<input name="columnNews" type="checkbox" value="1" />

 <input type="button" class="PublicBot" name="delete" id="button" value="删除" onClick="submits('batchDelete')">

 </td>

 </tr>

  </table>

 </form>

</div>



</body>

</html>

